#ifndef MYLINEEDIT_H
#define MYLINEEDIT_H

#include <QLineEdit>
#include <QWidget>
#include <QObject>

class QToolButton;
class QWidgetAction;
class QLabel;
class QSpacerItem;
class QPushButton;


class AttributeEdit : public QWidget
{
    Q_OBJECT
public:
    explicit AttributeEdit(QWidget *parent = nullptr);
    void setKey(QString key);
    void setValue(QString value);
    QString getKey(){return m_attribute;}
signals:
    void editingFinished(QString);
public slots:
    void slt_editingFinished();

private:
    QLabel      *label;
    QLineEdit   *edit;

    QString m_attribute;
    QString m_value;
};

#endif // MYLINEEDIT_H
